DataCollection | ComponentOne
C1.DataCollection Assembly / C1.DataCollection Namespace / IDataCollectionEx Class / ToDataCollection Method / ToDataCollection<T>(IEnumerable) Method
The type of the data collection.
The source of the data collection.

In This Topic
    ToDataCollection<T>(IEnumerable) Method
    In This Topic
    Wraps an System.Collections.IEnumerable into a data collection.
    Syntax
    'Declaration
     
    Public Overloads Shared Function ToDataCollection(Of T As Class)( _
       ByVal source As IEnumerable _
    ) As IDataCollection(Of T)
    public static IDataCollection<T> ToDataCollection<T>( 
       IEnumerable source
    )
    where T: class

    Parameters

    source
    The source of the data collection.

    Type Parameters

    T
    The type of the data collection.
    See Also